package com.seari.custody.enums;

public enum ProjectLevel {

    T(1, "特级"),
    ONE(2, "一级"),
    TWO(3, "二级"),
    THREE(4, "三级"),
    ;
    private String msg;
    private Integer code;

    public String getMsg() {
        return msg;
    }

    public static String getMsg(Integer code) {
        ProjectLevel[] values = values();
        for (ProjectLevel value : values) {
            if (value.getCode().equals(code)) {
                return value.getMsg();
            }
        }
        return "";
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    ProjectLevel(Integer code, String msg) {
        this.msg = msg;
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

}